﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.SessionState;
using System.Data;
namespace WebSite
{
    public class Global : System.Web.HttpApplication
    {

        protected void Application_Start(object sender, EventArgs e)
        {
            DataTable dt = new DataTable();
            DataColumn myDataColumn;
            System.Type myIntType;
           
            myIntType = System.Type.GetType("System.Int32");
            System.Type mystringtype;
            mystringtype = System.Type.GetType("System.String");
            System.Type mytimetype;
            mytimetype = System.Type.GetType("System.DateTime");

            myDataColumn = new DataColumn("Userid", myIntType);
            dt.Columns.Add(myDataColumn);
            myDataColumn = new DataColumn("UserName", mystringtype);
            dt.Columns.Add(myDataColumn);
            myDataColumn = new DataColumn("Phone", mystringtype);
            dt.Columns.Add(myDataColumn);
            myDataColumn = new DataColumn("A_Id", myIntType);
            dt.Columns.Add(myDataColumn);
            myDataColumn = new DataColumn("A_Name", mystringtype);
            dt.Columns.Add(myDataColumn);
            myDataColumn = new DataColumn("R_Id", myIntType);
            dt.Columns.Add(myDataColumn);
            myDataColumn = new DataColumn("R_Name", mystringtype);
            dt.Columns.Add(myDataColumn);
            myDataColumn = new DataColumn("J_Id", myIntType);
            dt.Columns.Add(myDataColumn);
            myDataColumn = new DataColumn("RefreshTime", mytimetype);
            dt.Columns.Add(myDataColumn);
            if(dt.Columns.Count ==0)
               dt.Columns.Add(myDataColumn);
         
            Application["onLineUser"] = dt;
        }

        protected void Session_Start(object sender, EventArgs e)
        {

        }

        protected void Application_BeginRequest(object sender, EventArgs e)
        {
           
        }

        protected void Application_AuthenticateRequest(object sender, EventArgs e)
        {

        }

        protected void Application_Error(object sender, EventArgs e)
        {

        }

        protected void Session_End(object sender, EventArgs e)
        {

        }

        protected void Application_End(object sender, EventArgs e)
        {

        }
    }
}